home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / netBoot.new / h / statreg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-19  |  1.2 KB  |  40 lines

  1.  
  2. /*    @(#)statreg.h 1.1 86/09/27 SMI    */
  3.  
  4. /*
  5.  * Copyright (c) 1986 by Sun Microsystems, Inc.
  6.  */
  7.  
  8. /*
  9.  * statreg.h
  10.  *
  11.  * Bit definitions for MC68000 family processor status register (SR)
  12.  * and other assorted registers.
  13.  *
  14.  * Taken from MC68020 Microprocessor User's Manual.
  15.  */
  16.  
  17. #define    SR_C        0x1    /* C (carry) bit */
  18. #define    SR_V        0x2    /* V (overflow) bit */
  19. #define    SR_Z        0x4    /* Z (zero) bit */
  20. #define    SR_N        0x8    /* N (negative) bit */
  21. #define    SR_X        0x10    /* X (extend) bit */
  22.  
  23. #define    SR_CCODES    (SR_C|SR_V|SR_Z|SR_N|SR_X)    /* condition codes */
  24.  
  25. #define    SR_INTMASK    0x0700    /* interrupt level */
  26.  
  27. #define    SR_MASTER    0x1000    /* master versus interrupt stack bit */
  28. #define    SR_SUPERVISOR    0x2000    /* supervisor state bit */
  29. #define    SR_TRACE_FLOW    0x4000    /* trace trap on flow of control change */
  30. #define    SR_TRACE    0x8000    /* trace trap after all instructions */
  31. /* Note, both trace bits should not be on at once. */
  32.  
  33. /*
  34.  * Cache control register bits
  35.  */
  36. #define    CACR_CLEAR    0x8    /* w/o Clear entire cache. */
  37. #define    CACR_CLEAR_ENT    0x4    /* w/o Clear one entry based on CAAR */
  38. #define    CACR_FREEZE    0x2    /* r/w Freeze cache, no new replacements */
  39. #define    CACR_ENABLE    0x1    /* r/w Enable the cache for operation */
  40.